<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>

        let num = 1;

        try{ 
            if(num>100) throw "值太大了"
            alert(num)
        }
        catch(err){
            alert(err)
        }finally{
            console.log('finally')
        }
        // let str = ''
        // try {
            
        //     if (str =='') throw new Error("111111")
        //     alert(str) 
        // } catch (error) {
        //     console.log(error)
        // }

        console.log("hello")
        console.log("hello")
        console.log("hello")
        console.log("hello")
            
    </script>
</body>
</html>